<div class="title">
  <div class='content'>
    派工安装
  </div>
  <% if being_edited %>
  <div class='tools'>
    <%= link_to '编辑',
          edit_installation_url(@install),
          :remote => true,
          :method => :get
     %>
  </div>
  <% end %>
</div>
<div class='info'>
  <table>
    <tr>
      <th>
        派工单号：
      </th>
      <td>
        <b class="install_no"><%= @install.install_no %></b><b class='status <%= @install.status %> corner'><%= t @install.status %></b>
      </td>
    </tr>
    <tr>
      <th>
        安装师傅：
      </th>
      <td>
        <% if @install.installer.present? %>
        <%= @install.installer.full_name %>-<%= @install.installer.mobile %>
        <% end %>
      </td>
    </tr>
    <tr>
      <th>
        安装日期：
      </th>
      <td>
        <%= @install.installed_on %>
      </td>
    </tr>
    <tr>
      <th>
        应收金额：
      </th>
      <td>
        <%= number_with_precision(@install.should_be_payed_price, :precision => 2) %>
      </td>
    </tr>
    <tr>
      <th>
        实收金额：
      </th>
      <td>
        <%= number_with_precision(@install.payed_price, :precision => 2) %>
      </td>
    </tr>
    <tr>
      <th>备注：</th>
      <td colspan='3'>
        <%= @install.remark %>
      </td>
    </tr>
  </table>    
</div>